# Contributor: Magnus Sandin <magnus.sandin@gmail.com>
# Maintainer: Magnus Sandin <magnus.sandin@gmail.com>
pkgname=libltc
pkgver=1.3.1
pkgrel=0
pkgdesc="provides functionality to encode and decode LTC audio"
url="https://github.com/x42/libltc"
arch="all"
license="LGPL-3.0-only"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/x42/libltc/releases/download/v$pkgver/libltc-$pkgver.tar.gz"

build() {
	./configure --prefix="/usr" \
		    --build=$CBUILD \
		    --host=$CHOST
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

check() {
	make -j 1 check
}

sha512sums="
e4ba96560f04155d022d2c975fa36d4bb77efb9a877344041e1bd12bd5e7d04dccb452f3a4e061aba961bd0c3c0d1d53dc98ac469e04e61a934feeedc20e09b3  libltc-1.3.1.tar.gz
"
